n = '我要学编程'
pw = '12345678'

def loginRoot():
    name = input('请输入你的用户名:')
    password = input('请输入你的密码:')

    if name == n and password == pw:
        print('登录成功~')
    else:
        print('登录失败')

username = '123'
userpassword = '12345'

def loginUser():
    name = input('请输入你的用户名:')
    password = input('请输入你的密码:')

    if name == username and password == password:
        print('登录成功~')
    else:
        print('登录失败')